#ifndef LOADING_H
#define LOADING_H

#include <QWidget>
#include <QTimer>
#include <QPainter>
#include <QPaintEvent>

class Loading : public QWidget
{
    Q_OBJECT
public:
    explicit Loading(QWidget *parent = nullptr);

    int imageRotate = 0;
    QTimer *timer;
    QString icon;
    void startLoading(QString icon, int interval);
    void stop(bool clear=true);
    void paintEvent(QPaintEvent *)override;
signals:

};

#endif // LOADING_H
